home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Digitalfoto 118
/
Digitalfoto 118.iso
/
mac
/
programas
/
00
/
start.swf
/
scripts
/
frame_1
/
DoAction_9.as
< prev
next >
Wrap
Text File
|
2009-11-16
|
2KB
|
90 lines
MovieClip.prototype.doubleClick = function()
{
var _loc2_ = getTimer();
if(this.old_click_time != undefined && _loc2_ - 500 <= this.old_click_time)
{
this.old_click_time = _loc2_;
return true;
}
this.old_click_time = _loc2_;
return false;
};
var mainTimeline = this;
XML.prototype.checkLoadProgress = function()
{
var _loc2_ = Math.floor(this.getBytesLoaded() / 1024);
var _loc3_ = Math.floor(this.getBytesTotal() / 1024);
var _loc4_ = !isNaN(Math.floor(_loc2_ / _loc3_ * 100)) ? Math.floor(_loc2_ / _loc3_ * 100) : 0;
this.onBytesLoaded(this.getBytesLoaded(),this.getBytesTotal(),_loc2_,_loc3_,_loc4_);
};
XML.prototype.clearLoadCheck = function()
{
if(this.loaderID)
{
clearInterval(this.loaderID);
}
};
XML.prototype.preload = function(url, noCache)
{
this.clearLoadCheck();
if(typeof noCache == "boolean" && noCache)
{
this.load(url + "?randomNum=" + random(999));
}
else
{
this.load(url);
}
this.loaderID = setInterval(this,"checkLoadProgress",200);
};
XML.prototype.sendAndPreload = function(url, resultXML, noCache)
{
this.clearLoadCheck();
if(resultXML instanceof XML)
{
if(typeof noCache == "boolean" && noCache)
{
this.sendAndLoad(url + "?randomNum=" + random(999),resultXML);
}
else
{
this.sendAndLoad(url,resultXML);
}
this.loaderID = setInterval(this,"checkLoadProgress",200);
}
return false;
};
TextField.prototype.txtZuschnitt = function(arg1, arg2)
{
this._visible = false;
this.text = " ";
var _loc7_ = this.textHeight;
if(arg2 == undefined)
{
arg2 = "";
}
var _loc4_ = "";
var _loc6_ = false;
var _loc2_ = 1;
while(_loc2_ <= arg1.length)
{
_loc4_ = arg1.substr(0,_loc2_);
this.text = _loc4_ + arg2;
if(this.textHeight > _loc7_)
{
this._parent.sub_string = arg1.substr(0,_loc2_ - 1) + arg2;
this._parent.total_string = arg1;
this.text = this._parent.sub_string;
_loc6_ = true;
break;
}
_loc2_ = _loc2_ + 1;
}
if(!_loc6_)
{
this._parent.total_string = arg1;
this.text = arg1;
}
this._visible = true;
};